package org.example.test.infratructure;

import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.example.infrastructure.persistent.dao.IAwardDao;
import org.example.infrastructure.persistent.po.Award;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: bigmarket_pro
 * @description: 奖品持久化单元测试
 * @author: jlu.xli  //将“你的名字”替换为实际作者名
 * @create: 2025-03-02 15:17
 */
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest

public class AwardDaoTest {
    @Resource
    private IAwardDao awardDao;
    @Test

    public void text_queryAwardList() {

        List<Award> awards = awardDao.queryAwardList();
        log.info("测试结果：{}", JSON.toJSONString(awards));//测试结果
    }
}
